﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using ASBCC.Database.Service;

namespace ASBCC.Business
{
    class SelectUserBussiness
    {
        #region Cache key
        private const string BG = "BG";
        private const string BDANDDEP = "BDANDDEP";

        #endregion

        ///// <summary>
        ///// 获取一级部门
        ///// </summary>
        ///// <param name="readyStr"></param>
        ///// <returns></returns>
        //public DataTable GetBG(string readyStr)
        //{

        //    //IWebCache webCache = WebCacheFactory.GetWebCache(CacheCategory.PerHour);
        //    //DataTable dt = new DataTable();
        //    //string key = BG;
        //    //object value = webCache.Get(key);
        //    //if (value == null)
        //    //{
        //    //    dt = ProcedureManager.usp3_SelectHr_Party_BG_for_SelectUsers(readyStr).Tables[0];
        //    //    webCache.Add(key, dt);
        //    //    return dt;
        //    //}
        //    //else
        //    //{
        //    //    return value as DataTable;
        //    //}
        //    return ProcedureManager.usp3_SelectHr_Party_BG_for_SelectUsers(readyStr).Tables[0];
        //}



        ///// <summary>
        ///// 获取二级、三级部门
        ///// </summary>
        ///// <param name="party_parent"></param>
        ///// <param name="readystr"></param>
        ///// <returns></returns>
        //public DataTable GetBDAndDEP(string party_parent, string readystr)
        //{
        //    DataTable dt = new DataTable();
        //    dt = ProcedureManager.usp3_SelectHr_Party_BDANDDEP_for_SelectUsers(party_parent, readystr).Tables[0];
        //    return dt;

        //    // return ProcedureManager.usp3_SelectHr_Party_BDANDDEP_for_SelectUsers(party_parent, readystr).Tables[0];
        //}

        ///// <summary>
        ///// 根据查询条件，获取用户信息
        ///// </summary>
        ///// <param name="hr_party_id"></param>
        ///// <param name="islast"></param>
        ///// <param name="orderby"></param>
        ///// <param name="pageindex"></param>
        ///// <param name="pagesize"></param>
        ///// <param name="readystr"></param>
        ///// <param name="recordcount"></param>
        ///// <param name="user_cd"></param>
        ///// <param name="user_name"></param>
        ///// <returns></returns>
        //public DataTable GetSelectUserInfo(object islast, string orderby, object pageindex, object pagesize, string readystr, ref object recordcount)
        //{
        //    return ProcedureManager.usp3_SelectUSER_INFO_for_SelectUsers(islast, orderby, pageindex, pagesize, readystr, ref recordcount).Tables[0];
        //}
    }
}
